package com.vietnam.power.domain;

import java.util.Date;

import com.vietnam.power.persitence.ProductGroup;

public class PatronInfo {
	private int id;
	private String address;
	private Date createdDate;
	private String email;
	private String fullName;
	private String phone;
	private int paymentId;
	private String remark;

	public PatronInfo() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFullName() {
		return this.fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getPaymentId() {
		return paymentId;
	}

	public void setPaymentId(int paymentId) {
		this.paymentId = paymentId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void convertToDomain(com.vietnam.power.persitence.PatronInfo p) {
		this.id = p.getId();
		this.fullName = p.getFullName();
		this.email = p.getEmail();
		this.createdDate = p.getCreatedDate();
		this.phone = p.getPhone();
		this.address = p.getAddress();
	}

	public void convertToPersist(com.vietnam.power.persitence.PatronInfo p) {
		p.setFullName(this.fullName);
		p.setAddress(this.address);
		p.setEmail(this.email);
		p.setPhone(this.phone);
	}
}